<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>shenmingzhouqi</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>shenmingzhouqi</h1>
    <hr>
    <div id="app">
        {{count}}
        <p><button @click="add">add</button></p>
    </div>
    <button onclick="app.$destroy()">销毁</button>

    <script type="text/javascript">
       var app = new Vue({
        el:'#app',
        data:{
            count: 1
        },
        methods:{
            add:function(){
                this.count++;
            }
        },
        beforeCreate:function(){

        },
        create:function(){

        },
         beforeMount:function(){

         },
         mounted: function(){

         },
         beforeUpdate:function(){

         },
         updated: function(){

         },
         beforeDestroy:function(){

         },
         destroyed: function(){

         }

       })
    </script>
</body>
</html>